1   /*
2    * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
3    * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4    *
5    * This code is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU General Public License version 2 only, as
7    * published by the Free Software Foundation.  Oracle designates this
8    * particular file as subject to the "Classpath" exception as provided
9    * by Oracle in the LICENSE file that accompanied this code.
10   *
11   * This code is distributed in the hope that it will be useful, but WITHOUT
12   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14   * version 2 for more details (a copy is included in the LICENSE file that
15   * accompanied this code).
16   *
17   * You should have received a copy of the GNU General Public License version
18   * 2 along with this work; if not, write to the Free Software Foundation,
19   * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20   *
21   * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22   * or visit www.oracle.com if you need additional information or have any
23   * questions.
24   */
25  
26  package com.sun.imageio.plugins.jpeg;
27  
28  import java.util.ListResourceBundle;
29  
30  abstract class JPEGMetadataFormatResources
31          extends ListResourceBundle {
32  
33      static final Object[][] commonContents = {
34          // Node name, followed by description
35          { "dqt", "A Define Quantization Table(s) marker segment" },
36          { "dqtable", "A single quantization table" },
37          { "dht", "A Define Huffman Table(s) marker segment" },
38          { "dhtable", "A single Huffman table" },
39          { "dri", "A Define Restart Interval marker segment" },
40          { "com", "A Comment marker segment.  The user object contains "
41            + "the actual bytes."},
42          { "unknown", "An unrecognized marker segment.  The user object "
43            + "contains the data not including length." },
44  
45          // Node name + "/" + AttributeName, followed by description
46          { "dqtable/elementPrecision",
47            "The number of bits in each table element (0 = 8, 1 = 16)" },
48          { "dgtable/qtableId",
49            "The table id" },
50          { "dhtable/class",
51            "Indicates whether this is a DC (0) or an AC (1) table" },
52          { "dhtable/htableId",
53            "The table id" },
54          { "dri/interval",
55            "The restart interval in MCUs" },
56          { "com/comment",
57            "The comment as a string (used only if user object is null)" },
58          { "unknown/MarkerTag",
59            "The tag identifying this marker segment" }
60      };
61  }